package com.jumi.microservice.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jumi.microservice.domain.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@TableName("commodity_browsehistory")
@ApiModel(value="商品足迹持久化对象", description="商品足迹持久化对象")
public class GoodsFootprintDO extends BaseEntity {

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "会员id")
    private Long memberId;

    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    @ApiModelProperty(value = "商品名称")
    @TableField(exist = false)
    private String goodsName;

    @ApiModelProperty(value = "商品主图")
    @TableField(exist = false)
    private String goodsImage;

    @ApiModelProperty(value = "商品价格")
    @TableField(exist = false)
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "收藏时间")
    private LocalDateTime broTime;

    @ApiModelProperty(value = "市场价")
    @TableField(exist = false)
    private BigDecimal goodsMarketprice;

    @ApiModelProperty(value = "已售库存")
    @TableField(exist = false)
    private Integer saledStorage;

    @ApiModelProperty(value = "实时总库存")
    @TableField(exist = false)
    private Integer saleStorage;

    @ApiModelProperty(value = "商品描述")
    @TableField(exist = false)
    private String goodsDescription;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public LocalDateTime getBroTime() {
        return broTime;
    }

    public void setBroTime(LocalDateTime broTime) {
        this.broTime = broTime;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsImage() {
        return goodsImage;
    }

    public void setGoodsImage(String goodsImage) {
        this.goodsImage = goodsImage;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsMarketprice() {
        return goodsMarketprice;
    }

    public void setGoodsMarketprice(BigDecimal goodsMarketprice) {
        this.goodsMarketprice = goodsMarketprice;
    }

    public String getGoodsDescription() {
        return goodsDescription;
    }

    public void setGoodsDescription(String goodsDescription) {
        this.goodsDescription = goodsDescription;
    }

    public Integer getSaledStorage() {
        return saledStorage;
    }

    public void setSaledStorage(Integer saledStorage) {
        this.saledStorage = saledStorage;
    }

    public Integer getSaleStorage() {
        return saleStorage;
    }

    public void setSaleStorage(Integer saleStorage) {
        this.saleStorage = saleStorage;
    }
}
